\hypertarget{debug_8c}{}\section{esp8266/debug.c File Reference}
\label{debug_8c}\index{esp8266/debug.\+c@{esp8266/debug.\+c}}


Small printf user function.  


{\ttfamily \#include \char`\"{}user\+\_\+config.\+h\char`\"{}}\\*
{\ttfamily \#include $<$stdint.\+h$>$}\\*
{\ttfamily \#include $<$stdarg.\+h$>$}\\*
{\ttfamily \#include $<$string.\+h$>$}\\*
{\ttfamily \#include $<$math.\+h$>$}\\*
{\ttfamily \#include \char`\"{}mathio.\+h\char`\"{}}\\*
{\ttfamily \#include \char`\"{}debug.\+h\char`\"{}}\\*
\subsection*{Functions}
\begin{DoxyCompactItemize}
\item 
static void \hyperlink{debug_8c_a9f0e0c76de59f37f7fd820521a21defb}{\+\_\+uart0\+\_\+fn} (struct \hyperlink{struct__printf__t}{\+\_\+printf\+\_\+t} $\ast$p, char ch)
\begin{DoxyCompactList}\small\item\em \+\_\+uart0\+\_\+fn low level function that writes a character with uart0har() \end{DoxyCompactList}\item 
\hyperlink{earth2wireframe_8c_ad0fe97585b8891f5e4f2b9a6426330a4}{M\+E\+M\+S\+P\+A\+CE} int \hyperlink{debug_8c_ab4ff4ed4ffc744d909dee04c5787376b}{uart0\+\_\+printf} (const char $\ast$format,...)
\begin{DoxyCompactList}\small\item\em printf function \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}
Small printf user function. 

\begin{DoxyParagraph}{Copyright \copyright{} 2015 Mike Gore, G\+PL License}

\end{DoxyParagraph}
\begin{DoxyParagraph}{You are free to use this code under the terms of G\+PL}
please retain a copy of this notice in any code you use it in.
\end{DoxyParagraph}
This is free software\+: you can redistribute it and/or modify it under the terms of the G\+NU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This software is distributed in the hope that it will be useful, but W\+I\+T\+H\+O\+UT A\+NY W\+A\+R\+R\+A\+N\+TY; without even the implied warranty of M\+E\+R\+C\+H\+A\+N\+T\+A\+B\+I\+L\+I\+TY or F\+I\+T\+N\+E\+SS F\+OR A P\+A\+R\+T\+I\+C\+U\+L\+AR P\+U\+R\+P\+O\+SE. See the G\+NU General Public License for more details.

You should have received a copy of the G\+NU General Public License along with this program. If not, see \href{http://www.gnu.org/licenses/}{\tt http\+://www.\+gnu.\+org/licenses/}. 

\subsection{Function Documentation}
\index{debug.\+c@{debug.\+c}!\+\_\+uart0\+\_\+fn@{\+\_\+uart0\+\_\+fn}}
\index{\+\_\+uart0\+\_\+fn@{\+\_\+uart0\+\_\+fn}!debug.\+c@{debug.\+c}}
\subsubsection[{\texorpdfstring{\+\_\+uart0\+\_\+fn(struct \+\_\+printf\+\_\+t $\ast$p, char ch)}{_uart0_fn(struct _printf_t *p, char ch)}}]{\setlength{\rightskip}{0pt plus 5cm}static void \+\_\+uart0\+\_\+fn (
\begin{DoxyParamCaption}
\item[{struct {\bf \+\_\+printf\+\_\+t} $\ast$}]{p, }
\item[{char}]{ch}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [static]}}\hypertarget{debug_8c_a9f0e0c76de59f37f7fd820521a21defb}{}\label{debug_8c_a9f0e0c76de59f37f7fd820521a21defb}


\+\_\+uart0\+\_\+fn low level function that writes a character with uart0har() 


\begin{DoxyParams}[1]{Parameters}
\mbox{\tt in}  & {\em $\ast$p} & structure with pointers to track number of bytes written \\
\hline
\mbox{\tt in}  & {\em ch} & character to write \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
void 
\end{DoxyReturn}


Definition at line 37 of file debug.\+c.



Referenced by uart0\+\_\+printf().

\index{debug.\+c@{debug.\+c}!uart0\+\_\+printf@{uart0\+\_\+printf}}
\index{uart0\+\_\+printf@{uart0\+\_\+printf}!debug.\+c@{debug.\+c}}
\subsubsection[{\texorpdfstring{uart0\+\_\+printf(const char $\ast$format,...)}{uart0_printf(const char *format,...)}}]{\setlength{\rightskip}{0pt plus 5cm}{\bf M\+E\+M\+S\+P\+A\+CE} int uart0\+\_\+printf (
\begin{DoxyParamCaption}
\item[{const char $\ast$}]{format, }
\item[{}]{...}
\end{DoxyParamCaption}
)}\hypertarget{debug_8c_ab4ff4ed4ffc744d909dee04c5787376b}{}\label{debug_8c_ab4ff4ed4ffc744d909dee04c5787376b}


printf function 


\begin{DoxyParams}[1]{Parameters}
\mbox{\tt in}  & {\em format} & printf forat string \\
\hline
\mbox{\tt in}  & {\em ...} & list of arguments \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
size of printed string 
\end{DoxyReturn}


Definition at line 54 of file debug.\+c.

